package model;


public class Dead extends State {

	@Override
	public boolean isAlive() {
		return false;
	}

	@Override
	public State nextStateFor(Cell cell) {
		int aliveNeigbours = countAmountAliveNeighbours(cell);
		State state = this;
		if ( aliveNeigbours == 3){
			state = new Alive();
		}
		return state;
	}
}
